<?php


namespace app\home\services;

use app\admin\model\CityModel;

class CityService
{
    private $model;

    public function __construct()
    {
        $this->model = new CityModel();
    }

    public function getDataByIds($ids = [], $field = [])
    {
        $list = $this->model->whereIn('cid', $ids)->field($field)->select();
        return $list;
    }
}